<script>
//1. 导入统一身份信息管理模块
import uniIdPagesInit from '@/uni_modules/uni-id-pages/init.js';
//2. 导入uniIm的Utils工具类
import uniImUtils from '@/uni_modules/uni-im/common/utils.js';
import { getUserInfo } from '@/api/user.js';
import getConfig from '@/utils/getConfig'

export default {
	onLaunch: function () {
		//3. 初始化uni身份信息管理模块
		uniIdPagesInit();
		//4. 初始化uniIm
		uniImUtils.init();
		console.log('App Launch');
		// #ifdef MP-WEIXIN
		uni.setStorageSync('start-state', 2)
		// #endif
		getConfig()
	},
	onShow: function () {
		console.log('App Show');
	},
	onHide: function () {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import '@/uni_modules/uni-scss/index.scss';
@import url('@/assets/public.css');
</style>
